module OrganCategoryPositionStandardJsonSerializer
  def self.as_json entity
    entity.to_json(include: [:position], except: [ :position_id])
  end

  def self.index_json entities
    entities.map { |e| JSON.parse(as_json e) }
  end
  
end